package com.ruoyi.mstore.service.impl;

import com.ruoyi.mstore.domain.MaintenanceRecord;
import com.ruoyi.mstore.mapper.MaintenanceRecordMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class MaintenanceRecordService {
    @Autowired
    private MaintenanceRecordMapper maintenanceRecordMapper;

    public int updateMaintenanceRecord(MaintenanceRecord maintenanceRecord) {
        return maintenanceRecordMapper.updateByPrimaryKeySelective(maintenanceRecord);

    }

    public int updateRecordStatusByRecordId(Long recordId, Integer recordStatus) {
        return maintenanceRecordMapper.updateRecordStatusByRecordId(recordId, recordStatus);
    }
}
